Costa Rica has a highly regarded public health system that provides universal healthcare coverage for its citizens. The system is ranked among the best in the world and has contributed to Costa Rica having the third highest life expectancy globally. The public system is funded by the Caja Costarricense del Seguro Social and features a network of hospitals and clinics across the country. Foreigners living in Costa Rica can either join the public system by paying income-based fees or purchase private health insurance through approved providers.